# @Time : 2025-01-16 11:21
# @Author : Fioman 
# @Phone : 13149920693
"""
相机的IP地址设置
"""
from db_tool.db_config import TableName, TableRegister, re_init_table

tableName: str = TableName.cameraIps.name
initData = {
    "key": "1",
    "leftCam": {
        "cameraIP": "192.169.0.20",
        "netIP": "192.169.0.2"
    },
    "rightCam": {
        "cameraIP": "192.170.0.20",
        "netIP": "192.170.0.2"
    }
}
TableRegister.register_table(tableName, initData)

if __name__ == '__main__':
    # 重新创建表结构,或者新增表字段之后,重新初始化表内容,谨慎使用
    re_init_table(tableName, initData)
